fix a few more tests

This commit is contained in:
Dmitry Jemerov
2015-10-08 20:20:27 +02:00
parent 02a242f15a
commit 457e40a0b8
14 changed files with 42 additions and 58 deletions
@@ -1,10 +1,10 @@
public class KOuter: Outer() {
public inner class X(bar: String? = (this@KOuter : Outer).A().bar): Outer.A() {
var next: Outer.A? = (this@KOuter : Outer).A()
val myBar: String? = (this@KOuter : Outer).A().bar
public inner class X(bar: String? = (this@KOuter as Outer).A().bar): Outer.A() {
var next: Outer.A? = (this@KOuter as Outer).A()
val myBar: String? = (this@KOuter as Outer).A().bar
init {
(this@KOuter : Outer).A().bar = ""
(this@KOuter as Outer).A().bar = ""
}
fun foo(a: Outer.A) {
@@ -1,15 +1,15 @@
Class/object property type (3: 25) var next: Outer.A? = (this@KOuter : Outer).A()
Class/object property type (3: 25) var next: Outer.A? = (this@KOuter as Outer).A()
Function return types (15: 30) fun getNext(): Outer.A? {
Function return types (29: 22) fun Any.toA(): Outer.A? {
Local variable declaration (11: 27) val aa: Outer.A = a
New instance creation (25: 39) fun KOuter.X.bar(a: Outer.A = Outer().A()) {
New instance creation (2: 63) public inner class X(bar: String? = (this@KOuter : Outer).A().bar): Outer.A() {
New instance creation (3: 52) var next: Outer.A? = (this@KOuter : Outer).A()
New instance creation (4: 52) val myBar: String? = (this@KOuter : Outer).A().bar
New instance creation (7: 35) (this@KOuter : Outer).A().bar = ""
New instance creation (2: 64) public inner class X(bar: String? = (this@KOuter as Outer).A().bar): Outer.A() {
New instance creation (3: 53) var next: Outer.A? = (this@KOuter as Outer).A()
New instance creation (4: 53) val myBar: String? = (this@KOuter as Outer).A().bar
New instance creation (7: 36) (this@KOuter as Outer).A().bar = ""
Parameter type (10: 26) fun foo(a: Outer.A) {
Parameter type (25: 27) fun KOuter.X.bar(a: Outer.A = Outer().A()) {
Super type qualifier (20: 25) super<Outer.A>.foo()
Supertype (2: 79) public inner class X(bar: String? = (this@KOuter : Outer).A().bar): Outer.A() {
Supertype (2: 80) public inner class X(bar: String? = (this@KOuter as Outer).A().bar): Outer.A() {
Target type of 'is' operation (30: 30) return if (this is Outer.A) this as Outer.A else null
Usage in cast target type (30: 47) return if (this is Outer.A) this as Outer.A else null