Allow top-level type aliases in scripts

This commit is contained in:
Dmitry Petrov
2017-05-23 14:44:46 +03:00
parent 425c66b0cd
commit 7600b6de52
6 changed files with 51 additions and 1 deletions
@@ -0,0 +1,9 @@
class SimpleClass(val s: String) {
fun foo() = s
}
typealias Test = SimpleClass
val rv = Test("OK").foo()
// expected: rv: OK