Create From Usage: Move "Create function"-related tests to separate directory
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// "Create function 'plus' from usage" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
fun plus(i: Int, s: String): A<T> = throw Exception()
|
||||
|
||||
fun plus(arg: T): A<T> {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val a: A<Int> = A(1) + 2
|
||||
}
|
||||
Reference in New Issue
Block a user