diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-05-26 04:47:45 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-05-26 04:47:45 +0400 |
commit | d4c48e6e62819da51d50a1cf8508dccd40239204 (patch) | |
tree | 488e29e40eebc264bbb80b84b45c40103fedc653 /mcs/tests/test-126.cs | |
parent | aaa4e5c7c4a76ea9f062bae67e4f525f9b9000a2 (diff) |
Add new test
svn path=/trunk/mcs/; revision=4936
Diffstat (limited to 'mcs/tests/test-126.cs')
-rwxr-xr-x | mcs/tests/test-126.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/tests/test-126.cs b/mcs/tests/test-126.cs new file mode 100755 index 00000000000..26ed4190a20 --- /dev/null +++ b/mcs/tests/test-126.cs @@ -0,0 +1,24 @@ +// +// It is possible to invoke object methods in an interface. +// +using System; + +interface Iface { + void Method (); +} + +class X : Iface { + + void Iface.Method () {} + + static int Main () + { + X x = new X (); + Iface f = x; + + if (f.ToString () != "X") + return 1; + + return 0; + } +} |