Generate a runtime error if a foreign method was not found.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
class Foo {
|
||||
static foreign method // expect error
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class Foo {
|
||||
foreign method { "body" } // expect error
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class Foo {
|
||||
foreign someUnknownMethod // expect runtime error: Could not find foreign method 'someUnknownMethod' for class Foo in module 'main'.
|
||||
}
|
||||
Reference in New Issue
Block a user