Minor refactorings in legacy codegen tests

Use loadFile() + getPrefix() instead of loadFile(String)
This commit is contained in:
Alexander Udalov
2016-02-23 17:56:28 +03:00
parent 5f7bc601a8
commit 1be6046fc2
9 changed files with 65 additions and 49 deletions
+4
View File
@@ -0,0 +1,4 @@
class A(private var v1: String) {
private var v2 = v1
override fun toString(): String { return "A[v1=$v1,v2=$v2]" }
}
+1
View File
@@ -0,0 +1 @@
open class Foo(var foo: String?, open protected val bar: String?)
+13
View File
@@ -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 }
}