Create From Usage: Create class by constructor call
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
object A {
|
||||
|
||||
class Foo(i: Int) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val a = A.Foo(2)
|
||||
}
|
||||
Reference in New Issue
Block a user