X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Ftest-nameof-02.cs;h=7cdecb1e1e64efd80e7ed17ea66d777beeb288ad;hb=b16bcb6332458610a13bb749b277f042ade32de2;hp=a8bb677416f23572491dd13f8c180ed132bbbec0;hpb=2d52cec1ce23c71b2729b4a4e20e5b40e8c54ae3;p=mono.git diff --git a/mcs/tests/test-nameof-02.cs b/mcs/tests/test-nameof-02.cs index a8bb677416f..7cdecb1e1e6 100644 --- a/mcs/tests/test-nameof-02.cs +++ b/mcs/tests/test-nameof-02.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; using SCG = System.Collections.Generic; -//using SCGL = System.Collections.Generic.List<>; +using SCGL = System.Collections.Generic.List; class A { @@ -75,7 +75,7 @@ class X if (nameof (Action) != "Action") return 10; - if (nameof (List) != "List") + if (nameof (List) != "List") return 11; if (nameof (GenMethod) != "GenMethod") @@ -95,7 +95,7 @@ class X if (nameof (Console.WriteLine) != "WriteLine") return 3; - if (nameof (System.Collections.Generic.List) != "List") + if (nameof (System.Collections.Generic.List) != "List") return 4; if (nameof (System.Collections) != "Collections") @@ -104,10 +104,10 @@ class X if (nameof (X.GenMethod) != "GenMethod") return 6; - if (nameof (A<>.B) != "B") + if (nameof (A.B) != "B") return 7; - if (nameof (A<>.B.Foo) != "Foo") + if (nameof (A.B.Foo) != "Foo") return 7; return 0; @@ -118,11 +118,11 @@ class X if (nameof (global::System.Int32) != "Int32") return 1; - if (nameof (SCG.List) != "List") + if (nameof (SCG.List) != "List") return 2; -// if (nameof (SCGL.Contains) != "Contains") -// return 3; + if (nameof (SCGL.Contains) != "Contains") + return 3; return 0; }