JS: support '-Xskip-metadata-version-check' to allow pre-release libraries

This commit is contained in:
Alexander Udalov
2017-03-16 14:35:17 +03:00
parent a795a256f4
commit 30dfd5cc1b
6 changed files with 59 additions and 15 deletions
@@ -0,0 +1,9 @@
package a
open class A {
class Nested
}
fun foo() {}
var bar = 42
typealias TA = String
@@ -0,0 +1,15 @@
@file:Suppress("UNUSED_VARIABLE")
package usage
import a.*
fun baz(param: A) {
val constructor = A()
val methodCall = param.hashCode()
val supertype = object : A() {}
val x = foo()
val y = bar
bar = 239
val z: TA = ""
}