anonymous packages supported
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
namespace {
|
||||
open class Library() {
|
||||
class object {
|
||||
val ourOut : PrintStream?
|
||||
@@ -8,5 +7,4 @@ open class User() {
|
||||
open fun main() : Unit {
|
||||
Library.ourOut?.print()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace {
|
||||
open class Library() {
|
||||
class object {
|
||||
open fun call() : Unit {
|
||||
@@ -13,5 +12,4 @@ open fun main() : Unit {
|
||||
Library.call()
|
||||
Library.getString()?.isEmpty()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace {
|
||||
open class Library() {
|
||||
open fun call() : Unit {
|
||||
}
|
||||
@@ -14,5 +13,4 @@ lib?.getString()?.isEmpty()
|
||||
Library().call()
|
||||
Library().getString()?.isEmpty()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace {
|
||||
open class Library() {
|
||||
public val myString : String?
|
||||
}
|
||||
@@ -6,5 +5,4 @@ open class User() {
|
||||
open fun main() : Unit {
|
||||
Library.myString?.isEmpty()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,4 @@
|
||||
namespace {
|
||||
public open class MyClass() {
|
||||
open private fun init(arg1 : Int, arg2 : Int, arg3 : Int) : Unit {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,4 @@
|
||||
namespace {
|
||||
class A() {
|
||||
}
|
||||
class B() {
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace {
|
||||
open class A() {
|
||||
open fun a() : Unit {
|
||||
}
|
||||
@@ -6,5 +5,4 @@ open fun a() : Unit {
|
||||
class B() : A {
|
||||
override fun a() : Unit {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace {
|
||||
open class A() {
|
||||
open fun foo() : Unit {
|
||||
}
|
||||
@@ -10,5 +9,4 @@ override fun foo() : Unit {
|
||||
open class C() : B {
|
||||
override fun foo() : Unit {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace {
|
||||
open class Base() {
|
||||
open fun foo() : Unit
|
||||
}
|
||||
@@ -8,5 +7,4 @@ open fun test() : Unit {
|
||||
super@A.foo()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace {
|
||||
open class Base() {
|
||||
open fun foo() : Unit {
|
||||
}
|
||||
@@ -9,5 +8,4 @@ open fun test() : Unit {
|
||||
this@A.foo()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user