Files
Pavel Mikhailovskii 2002542ad2 Stub generation infrastructure (except for metadata generation) for KAPT+K2
This commit includes the basic Java stubs generation infrastructure and
the corresponding tests. The main entry point is called
Kapt4StubGenerator. Calls to it from production code will be added in a
separate commit.

 #KT-51982
2023-08-09 01:17:21 +00:00

30 lines
562 B
Kotlin
Vendored

// STRICT
// EXPECTED_ERROR: (other:-1:-1) test.M1: Can't reference type 'RootClass' from default package in Java stub.
// EXPECTED_ERROR_K2: (other:-1:-1) test.M1: Can't reference type 'AnotherRootClass' from default package in Java stub.
// FILE: a.kt
class RootClass
class AnotherRootClass
// FILE: test/b.kt
@file:JvmMultifileClass
@file:JvmName("M1")
package test
import RootClass
fun foo(): RootClass? = null
// FILE: test/c.kt
@file:JvmMultifileClass
@file:JvmName("M1")
package test
import AnotherRootClass
fun bar(): AnotherRootClass? = null