82b19499e3
Use generated tests approach in converter tests Introduce two seperate generated test cases of each of configurations, all tests are generated in both test cases Test data for plugin configuration has extension "ide.kt", for basic configuration "*.kt" Test data file is used to determine type of the test (file/class/expression/...) instead of directory, all test data is moved accordingly Add abstract base classes for generated tests Rename test folder "file" to "misc" (for the lack of imagination)
37 lines
912 B
Kotlin
37 lines
912 B
Kotlin
public open class Identifier(_myName : String, _myHasDollar : Boolean) {
|
|
private val myName : String
|
|
private var myHasDollar : Boolean = false
|
|
private var myNullable : Boolean = true
|
|
public open fun getName() : String {
|
|
return myName
|
|
}
|
|
{
|
|
myName = _myName
|
|
myHasDollar = _myHasDollar
|
|
}
|
|
class object {
|
|
public open fun init(name : String) : Identifier {
|
|
val __ = Identifier(name, false)
|
|
return __
|
|
}
|
|
public open fun init(name : String, isNullable : Boolean) : Identifier {
|
|
val __ = Identifier(name, false)
|
|
__.myNullable = isNullable
|
|
return __
|
|
}
|
|
public open fun init(name : String, hasDollar : Boolean, isNullable : Boolean) : Identifier {
|
|
val __ = Identifier(name, hasDollar)
|
|
__.myNullable = isNullable
|
|
return __
|
|
}
|
|
}
|
|
}
|
|
public open class User() {
|
|
class object {
|
|
public open fun main() : Unit {
|
|
val i1 = Identifier.init("name", false, true)
|
|
val i2 = Identifier.init("name", false)
|
|
val i3 = Identifier.init("name")
|
|
}
|
|
}
|
|
} |