Optimize type checking for common cases

- Type equality for simple constructors (no arguments)
- Subtyping on final classes
This commit is contained in:
Denis Zharkov
2017-09-28 18:57:53 +03:00
parent e519095e9e
commit bca53e6c1c
5 changed files with 32 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
package toplevelObjectDeclarations
class Foo(y : Int) {
open class Foo(y : Int) {
~foo()~open fun foo() : Int = 1
}