Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mcs] Missing type forwarded types should not cause type collision. F…
…ixes #16196
- Loading branch information
1 parent
c0567c5
commit 58d4cd3
Showing
7 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// CS1070: The type `N.E' has been forwarded to an assembly that is not referenced. Consider adding a reference to assembly `CS1070-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' | ||
// Line: 9 | ||
// Compiler options: -r:CS1070-lib.dll | ||
|
||
using N; | ||
|
||
public class D | ||
{ | ||
public void Foo (E e) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.assembly extern mscorlib | ||
{ | ||
} | ||
|
||
.assembly extern 'test-875-lib-missing' | ||
{ | ||
} | ||
|
||
.assembly 'test-875-2-lib' | ||
{ | ||
.hash algorithm 0x00008004 | ||
.ver 0:0:0:0 | ||
} | ||
|
||
.module 'test-875-2-lib' | ||
|
||
.class extern forwarder N.Lib | ||
{ | ||
.assembly extern 'test-875-lib-missing' | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Compiler options: -t:library | ||
|
||
namespace N | ||
{ | ||
public class Lib | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Compiler options: -r:test-875-lib.dll -r:test-875-2-lib.dll | ||
|
||
using N; | ||
|
||
public class Test: Lib | ||
{ | ||
public static void Main () | ||
{ | ||
new Test (); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters