At first the compiler can compile the SubPackage.kt
correctly. But if I run the compiler again, it cannot process the imported references.
D:\work\kotlin\tmp λ kotlinc Package.kt
Picked up JAVA_TOOL_OPTIONS: -Xmx8g
D:\work\kotlin\tmp λ kotlinc SubPackage.kt -cp .
Picked up JAVA_TOOL_OPTIONS: -Xmx8g
D:\work\kotlin\tmp λ kotlinc SubPackage.kt -cp .
Picked up JAVA_TOOL_OPTIONS: -Xmx8g
SubPackage.kt:4:20: error: unresolved reference: circleArea
import com.jnfsoft.circleArea
^
SubPackage.kt:5:20: error: unresolved reference: Pi
import com.jnfsoft.Pi
^
SubPackage.kt:13:66: error: unresolved reference: Pi
fun sphereVolume(r:Double) = 4.0 / 3.0 * r * r * r * com.jnfsoft.Pi
^
SubPackage.kt:15:36: error: unresolved reference: Pi
fun circleArea(r:Double) = r * r * Pi
^