Files
kotlin/idea/testData/quickfix/createFromUsage/createClass/callExpression/callWithExtraArgs.kt
2017-05-19 12:20:51 +03:00

13 lines
371 B
Kotlin
Vendored

// "Create class 'Foo'" "false"
// ACTION: Create function 'Foo'
// ACTION: Add parameter to constructor 'Foo'
// ACTION: Create secondary constructor
// ERROR: Too many arguments for public constructor Foo(a: Int) defined in Foo
// ACTION: Put arguments on separate lines
// ACTION: To raw string literal
class Foo(a: Int)
fun test() {
val a = Foo(2, <caret>"2")
}