summaryrefslogtreecommitdiff
path: root/tests/semantic/method-override-no-class.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/semantic/method-override-no-class.test')
-rw-r--r--tests/semantic/method-override-no-class.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/semantic/method-override-no-class.test b/tests/semantic/method-override-no-class.test
new file mode 100644
index 000000000..f881aa4ea
--- /dev/null
+++ b/tests/semantic/method-override-no-class.test
@@ -0,0 +1,14 @@
+Invalid Code
+
+class Foo {
+ public virtual void foo () {
+ }
+}
+
+interface Bar : Foo {
+ public override void foo () {
+ }
+}
+
+void main () {
+}