refactor: extract validateSuperclass helper and move subclassing tests to inheritance directory

This commit is contained in:
Bob Nystrom
2015-02-27 16:08:27 +00:00
parent d7d067b960
commit 3a8bc85674
18 changed files with 56 additions and 49 deletions
@@ -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.