Bug 8829

Summary: Argument decorated with [CallerMemberName] comes up null when caller is in different assembly
Product: [Mono] Compilers Reporter: Andrew Clunis <andrew>
Component: C#Assignee: Marek Safar <masafa>
Status: RESOLVED FIXED    
Severity: normal CC: andrew, mono-bugs+mono
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: Assembly2: Code that uses [CallerMemberName] to intercept an incoming caller.
Assembly1: Code that invokes the code in Assembly2.cs.

Description Andrew Clunis 2012-12-06 19:49:33 UTC
Created attachment 3071 [details]
Assembly2: Code that uses [CallerMemberName] to intercept an incoming caller.

Test case attached.

Thank you. :)
Comment 1 Andrew Clunis 2012-12-06 19:51:55 UTC
Created attachment 3072 [details]
Assembly1: Code that invokes the code in Assembly2.cs.
Comment 2 Andrew Clunis 2012-12-06 19:54:52 UTC
Create two separate assemblies, Assembly1 as an executable and Assembly2 as a library.  Assembly1 depends on Assembly2.

Tested and fails against Mono 3.0.0 on Linux.  Works with MS .net 4.5 on Windows.
Comment 3 Marek Safar 2012-12-12 10:01:42 UTC
Fixed in master