Add tests for obsolete issues
#KT-13112 Obsolete #KT-14249 Obsolete
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user