refactor: extract validateSuperclass helper and move subclassing tests to inheritance directory
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
var ClosureType
|
||||
|
||||
{
|
||||
var a = "a"
|
||||
ClosureType = new Fn { IO.print(a) }.type
|
||||
}
|
||||
|
||||
class Subclass is ClosureType {} // expect runtime error: Subclass cannot inherit from Fn.
|
||||
Reference in New Issue
Block a user