-
Notifications
You must be signed in to change notification settings - Fork 250
Expand file tree
/
Copy pathsamefile.kt
More file actions
47 lines (31 loc) · 807 Bytes
/
Copy pathsamefile.kt
File metadata and controls
47 lines (31 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package test.kotlin.lsp
interface MyInterface {
fun test(input: String, otherInput: Int)
}
class MyClass : MyInterface {
}
abstract class CanPrint {
abstract fun print()
}
class PrintableClass : CanPrint(), MyInterface {}
class OtherPrintableClass : CanPrint(), MyInterface {
override fun test(input: String, otherInput: Int) {}
}
interface NullMethodAndReturn<T> {
fun myMethod(myStr: T?): T?
}
class NullClass : NullMethodAndReturn<String> {}
abstract class MyAbstract {
val otherValToTestAbstractOverride = 1
abstract val name: String
abstract fun myFun()
}
class MyImplClass : MyAbstract() {}
class My2ndClass : MyAbstract() {
override val name = "Nils"
}
// defect GH-366, part of the solution
interface IThing {
fun behaviour
}
class Thing : IThing