Reorganize superclass validation a bit.

This commit is contained in:
Bob Nystrom
2015-02-27 08:08:27 -08:00
parent 46713a5bb3
commit c27a094882
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.