Minor refactorings in legacy codegen tests
Use loadFile() + getPrefix() instead of loadFile(String)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
class A(private var v1: String) {
|
||||
private var v2 = v1
|
||||
override fun toString(): String { return "A[v1=$v1,v2=$v2]" }
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
open class Foo(var foo: String?, open protected val bar: String?)
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
class U<T>
|
||||
|
||||
open class WeatherReport
|
||||
{
|
||||
public open var forecast: U<String> = U<String>()
|
||||
}
|
||||
|
||||
open class DerivedWeatherReport() : WeatherReport()
|
||||
{
|
||||
public override var forecast: U<String>
|
||||
get() = super.forecast
|
||||
set(newv: U<String>) { super.forecast = newv }
|
||||
}
|
||||
Reference in New Issue
Block a user