Add tests for obsolete issues

#KT-13112 Obsolete
 #KT-14249 Obsolete
This commit is contained in:
Mikhail Zarechenskiy
2017-05-08 03:37:01 +03:00
parent 38eff6966d
commit fba52359ac
5 changed files with 428 additions and 0 deletions
@@ -0,0 +1,20 @@
// MODULE: m1
// FILE: org/test/Foo.java
package org.test;
class Foo {
static Foo create() { return Foo(); }
void takeFoo(Foo f) {}
}
// MODULE: m2(m1)
// FILE: test.kt
package org.test
fun test() {
Foo()
val a: Foo = Foo.create()
Foo().takeFoo(a)
}