Files
kotlin-fork/plugins/android-compiler-plugin/testData/codegen/android/fragment/1.kt
T
Pavel V. Talanov ed218c473a Get rid of 'class object' usages in code and builtins
Replace some comments and library usages as well
2015-03-25 18:28:00 +03:00

33 lines
601 B
Kotlin
Vendored

package com.myapp
import android.app.Activity
import android.app.Fragment
import android.content.Context
import android.view.View
import android.widget.*
import org.my.cool.MyButton
import kotlinx.android.synthetic.layout.*
class R {
class id {
companion object {
val login = 5
}
}
}
class BaseView(ctx: Context) : View(ctx) {
val buttonWidget = MyButton(ctx)
}
class MyFragment(): Fragment() {
val baseActivity = Activity()
val baseView = BaseView(baseActivity)
override fun getView(): View = baseView
}
fun box(): String {
return "OK"
}