This commit is contained in:
Dmitry Jemerov
2016-07-19 17:57:49 +02:00
parent 3cbe28095b
commit 079d857aa2
188 changed files with 218 additions and 201 deletions
@@ -5,6 +5,6 @@ import org.junit.runners.Parameterized
class A { class A {
@Parameterized.Parameters @Parameterized.Parameters
fun data(): Collection<Array<Any>> { fun data(): Collection<Array<Any>> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -5,6 +5,6 @@ import org.junit.Before
class A { class A {
@Before @Before
fun setUp() { fun setUp() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -5,7 +5,7 @@ import org.junit.Before
class A { class A {
@org.testng.annotations.BeforeMethod @org.testng.annotations.BeforeMethod
fun setUp() { fun setUp() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@Before @Before
@@ -5,6 +5,6 @@ import org.junit.After
class A { class A {
@After @After
fun tearDown() { fun tearDown() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -5,7 +5,7 @@ import org.junit.After
class A { class A {
@org.testng.annotations.AfterMethod @org.testng.annotations.AfterMethod
fun tearDown() { fun tearDown() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@After @After
@@ -5,6 +5,6 @@ import org.junit.Test
class A { class A {
@Test @Test
fun name() { fun name() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -4,6 +4,6 @@ import junit.framework.TestCase
class A : TestCase() { class A : TestCase() {
fun testName() { fun testName() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -6,6 +6,6 @@ import org.testng.annotations.Test
@Test class A { @Test class A {
@DataProvider(name = "name") @DataProvider(name = "name")
fun name(): Array<Array<Any>> { fun name(): Array<Array<Any>> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -6,6 +6,6 @@ import org.testng.annotations.Test
@Test class A { @Test class A {
@BeforeMethod @BeforeMethod
fun setUp() { fun setUp() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -6,6 +6,6 @@ import org.testng.annotations.Test
@Test class A { @Test class A {
@AfterMethod @AfterMethod
fun tearDown() { fun tearDown() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -5,6 +5,6 @@ import org.testng.annotations.Test
@Test class A { @Test class A {
@Test @Test
fun testName() { fun testName() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -11,6 +11,6 @@ class B : A() {
* @see TEST * @see TEST
*/ */
override fun foo() { override fun foo() {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -4,6 +4,6 @@ interface T {
class C : T { class C : T {
override fun foo(a: Int) { override fun foo(a: Int) {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -5,7 +5,7 @@ interface T {
class C(t :T) : T by t { class C(t :T) : T by t {
override fun bar() { override fun bar() {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
override fun equals(other: Any?): Boolean { override fun equals(other: Any?): Boolean {
@@ -13,7 +13,7 @@ class C(t :T) : T by t {
} }
override fun foo() { override fun foo() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
override fun hashCode(): Int { override fun hashCode(): Int {
@@ -23,7 +23,7 @@ class C : B(), I {
} }
override fun g() { override fun g() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
override fun hashCode(): Int { override fun hashCode(): Int {
@@ -5,6 +5,6 @@ interface T {
class C : T { class C : T {
override fun Foo(): (String) -> Unit { override fun Foo(): (String) -> Unit {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -5,6 +5,6 @@ interface T {
class C : T { class C : T {
override fun Foo(): (String) -> Unit { override fun Foo(): (String) -> Unit {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -4,6 +4,6 @@ interface Trait {
class TraitImpl : Trait { class TraitImpl : Trait {
override fun <A, B : Runnable, E : Map.Entry<A, B>> foo() where B : Cloneable, B : Comparable<B> { override fun <A, B : Runnable, E : Map.Entry<A, B>> foo() where B : Cloneable, B : Comparable<B> {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -8,14 +8,14 @@ interface Some<T> {
class SomeOther<S> : Some<S> { class SomeOther<S> : Some<S> {
override fun someFoo() { override fun someFoo() {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
override fun someGenericFoo(): S { override fun someGenericFoo(): S {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
override fun someOtherFoo(): Int { override fun someOtherFoo(): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -4,6 +4,6 @@ interface G<T> {
class GC() : G<Int> { class GC() : G<Int> {
override fun foo(t: Int): Int { override fun foo(t: Int): Int {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -2,6 +2,6 @@
class MyClass<A: Comparable<A>> : Iterable<A> { class MyClass<A: Comparable<A>> : Iterable<A> {
override fun iterator(): Iterator<A> { override fun iterator(): Iterator<A> {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -1,5 +1,5 @@
class C : (String) -> Boolean { class C : (String) -> Boolean {
override fun invoke(p1: String): Boolean { override fun invoke(p1: String): Boolean {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -3,6 +3,6 @@ import foo.B
class C : A() { class C : A() {
override fun foo(x: MutableList<Any?>?, y: String?): B<*> { override fun foo(x: MutableList<Any?>?, y: String?): B<*> {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -2,6 +2,6 @@ package foo
class Impl: B { class Impl: B {
override fun foo(r: Runnable?) { override fun foo(r: Runnable?) {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -2,6 +2,6 @@ import foo.Intf
class Impl(): Intf { class Impl(): Intf {
override fun getFooBar(): String { override fun getFooBar(): String {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -2,6 +2,6 @@ import foo.Intf
class Impl(): Intf { class Impl(): Intf {
override fun fooBar(i: Int, s: Array<out String>?, foo: Any?) { override fun fooBar(i: Int, s: Array<out String>?, foo: Any?) {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -7,7 +7,7 @@ fun f() {
object : C<R>() { object : C<R>() {
override fun f(a: R) { override fun f(a: R) {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
} }
@@ -8,7 +8,7 @@ interface B {
class C : A(), B { class C : A(), B {
override fun bar() { override fun bar() {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
override fun equals(other: Any?): Boolean { override fun equals(other: Any?): Boolean {
@@ -4,6 +4,6 @@ interface A {
class B : A { class B : A {
override fun String.foo() { override fun String.foo() {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -1,4 +1,3 @@
// ERROR: Unresolved reference: println
open class A() { open class A() {
open val method : () -> Unit? = {println("hello")} open val method : () -> Unit? = {println("hello")}
} }
@@ -1,4 +1,3 @@
// ERROR: Unresolved reference: println
interface A<T> { interface A<T> {
fun foo(value : T) : Unit = println(value) fun foo(value : T) : Unit = println(value)
} }
@@ -1,4 +1,3 @@
// ERROR: Unresolved reference: println
open class A() { open class A() {
open fun foo(value : Int) : Unit = println(value) open fun foo(value : Int) : Unit = println(value)
open val bar : Int = 0 open val bar : Int = 0
@@ -20,6 +20,6 @@ class C : A(), I {
} }
override fun z() { override fun z() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -6,7 +6,7 @@ interface Test {
class SomeTest : Test { class SomeTest : Test {
val hello = 12 val hello = 12
override fun test() { override fun test() {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
override val testProp: Int override val testProp: Int
@@ -3,7 +3,7 @@ import lib.ArrayFactory
public class Impl : ArrayFactory { public class Impl : ArrayFactory {
override fun create(): lib.Array { override fun create(): lib.Array {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -6,6 +6,6 @@ interface Base {
class Derived : Base { class Derived : Base {
override fun foo(c: C<*>) { override fun foo(c: C<*>) {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -30,15 +30,15 @@ abstract class B : I2, A(), I3 {
} }
override fun i() { override fun i() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
override fun i1() { override fun i1() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
override fun i2() { override fun i2() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
override fun toString(): String { override fun toString(): String {
@@ -4,6 +4,6 @@ interface G<T> {
class GC<T>() : G<T> { class GC<T>() : G<T> {
override fun foo(t: T): T { override fun foo(t: T): T {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -4,6 +4,6 @@ interface Some {
class SomeOther : Some { class SomeOther : Some {
override fun foo(some: Int?): Int { override fun foo(some: Int?): Int {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -8,6 +8,6 @@ enum class E : T<Int> {
A, B, C; A, B, C;
override fun foo(x: Int): Int { override fun foo(x: Int): Int {
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <caret><selection>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -8,6 +8,6 @@ enum class E : T<Int> {
A, B, C; A, B, C;
override fun foo(x: Int): Int { override fun foo(x: Int): Int {
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <caret><selection>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -8,7 +8,7 @@ enum class E : T<Int> {
A, B, C; A, B, C;
override fun foo(x: Int): Int { override fun foo(x: Int): Int {
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <caret><selection>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
val bar = 1 val bar = 1
@@ -3,15 +3,15 @@
enum class E { enum class E {
A { A {
override fun foo(x: Int): Int { override fun foo(x: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
}, B { }, B {
override fun foo(x: Int): Int { override fun foo(x: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
}, C { }, C {
override fun foo(x: Int): Int { override fun foo(x: Int): Int {
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <caret><selection>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
}; };
@@ -3,15 +3,15 @@
enum class E(n: Int) { enum class E(n: Int) {
A(1) { A(1) {
override fun foo(x: Int): Int { override fun foo(x: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
}, B(2) { }, B(2) {
override fun foo(x: Int): Int { override fun foo(x: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
}, C(3) { }, C(3) {
override fun foo(x: Int): Int { override fun foo(x: Int): Int {
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <caret><selection>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
}; };
@@ -6,14 +6,14 @@ interface T<X> {
class U : T<String> { class U : T<String> {
override fun foo(x: String): String { override fun foo(x: String): String {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
class V : T<Int> { class V : T<Int> {
override fun foo(x: Int): Int { override fun foo(x: Int): Int {
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection> <caret><selection>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
infix fun foo(t: T): A<T> { infix fun foo(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
infix operator fun compareTo(t: T): Int { infix operator fun compareTo(t: T): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
infix operator fun contains(t: T): Boolean { infix operator fun contains(t: T): Boolean {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
infix operator fun compareTo(t: T): Int { infix operator fun compareTo(t: T): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
infix operator fun contains(t: T): Boolean { infix operator fun contains(t: T): Boolean {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
infix operator fun plusAssign(t: T) { infix operator fun plusAssign(t: T) {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -4,7 +4,7 @@ class A<T>(val n: T) {
operator fun unaryPlus(): A<T> = throw Exception() operator fun unaryPlus(): A<T> = throw Exception()
infix operator fun plus(t: T): A<T> { infix operator fun plus(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
infix operator fun plus(t: T): A<T> { infix operator fun plus(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -4,7 +4,7 @@ class A<T>(val n: T) {
fun plus(i: Int, s: String): A<T> = throw Exception() fun plus(i: Int, s: String): A<T> = throw Exception()
infix operator fun plus(t: T): A<T> { infix operator fun plus(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -8,5 +8,5 @@ fun test() {
} }
infix operator fun Int.plus(a: A<Int>): A<Int> { infix operator fun Int.plus(a: A<Int>): A<Int> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
infix operator fun plus(t: T): A<T> { infix operator fun plus(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
infix operator fun plus(i: Int): A<T> { infix operator fun plus(i: Int): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -6,5 +6,5 @@ fun test() {
} }
infix fun Int.`!u00A0`(i: Int): Int { infix fun Int.`!u00A0`(i: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
infix operator fun contains(t: T): Boolean { infix operator fun contains(t: T): Boolean {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
infix operator fun contains(t: T): Boolean { infix operator fun contains(t: T): Boolean {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -6,5 +6,5 @@ fun test() {
} }
fun foo(n: String) { fun foo(n: String) {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -5,5 +5,5 @@ fun test() {
} }
fun foo(): String { fun foo(): String {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
fun foo(t: T, s: String, function: (T) -> T): A<T> { fun foo(t: T, s: String, function: (T) -> T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
fun foo(function: (T) -> T): A<T> { fun foo(function: (T) -> T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -5,6 +5,6 @@ fun isModified(settings: Settings, c: C) = c.foo(settings)
class C { class C {
fun foo(settings: Settings): Any { fun foo(settings: Settings): Any {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -6,5 +6,5 @@ fun test(): Int {
} }
fun A.foo(): Int { fun A.foo(): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -6,5 +6,5 @@ fun test(): Int? {
} }
fun A.foo(i: Int, s: String): Int? { fun A.foo(i: Int, s: String): Int? {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -7,5 +7,5 @@ fun test(t: T) {
} }
fun T.foo(s: String, i: Int): Boolean { fun T.foo(s: String, i: Int): Boolean {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -11,5 +11,5 @@ class X {
} }
fun package2.A.foo() { fun package2.A.foo() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -4,7 +4,7 @@ class A<T>(val n: T) {
fun foo(a: Int): A<T> = throw Exception() fun foo(a: Int): A<T> = throw Exception()
fun foo(a: T, s: String): A<T> { fun foo(a: T, s: String): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -4,7 +4,7 @@ class A<T>(val n: T) {
fun foo(i: Int, s: String): A<T> = throw Exception() fun foo(i: Int, s: String): A<T> = throw Exception()
fun foo(i: T): A<T> { fun foo(i: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -3,7 +3,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
companion object { companion object {
fun foo(i: Int): Int { fun foo(i: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -6,5 +6,5 @@ fun test() {
} }
fun Unit.foo(i: Int): Int { fun Unit.foo(i: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -8,5 +8,5 @@ fun test() {
} }
fun Int.foo(a: A<Int>): A<Int> { fun Int.foo(a: A<Int>): A<Int> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -2,7 +2,7 @@
object A { object A {
fun foo(i: Int): Int { fun foo(i: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
fun foo(t: T): A<T> { fun foo(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -5,7 +5,7 @@ class F {
} }
fun foo(i: Int, s: String): Int { fun foo(i: Int, s: String): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
fun foo(u: T): A<T> { fun foo(u: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -8,7 +8,7 @@ class A {
} }
private fun foo(): A { private fun foo(): A {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
fun bar() { fun bar() {
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
fun foo(abc: T, ghi: A<T>, def: String): A<T> { fun foo(abc: T, ghi: A<T>, def: String): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
fun foo(t: T?): A<Int> { fun foo(t: T?): A<Int> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
fun foo(t: T): A<T>? { fun foo(t: T): A<T>? {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
fun foo(t: T): A<String> { fun foo(t: T): A<String> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -7,5 +7,5 @@ fun test() {
} }
fun foo(i: Int, s: String) { fun foo(i: Int, s: String) {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -5,5 +5,5 @@ fun foo(block: (Int) -> String) {
} }
fun bar(block: (Int) -> String) { fun bar(block: (Int) -> String) {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -5,5 +5,5 @@ fun foo(block: (Int) -> String) {
} }
fun <P1, R> ((P1) -> R).bar() { fun <P1, R> ((P1) -> R).bar() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -7,5 +7,5 @@ fun test() {
} }
fun foo(): Any { fun foo(): Any {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -3,7 +3,7 @@
class A<T>(val n: T) { class A<T>(val n: T) {
fun foo(s: String, t: T): Any { fun foo(s: String, t: T): Any {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -1,10 +1,8 @@
// "Create function" "false" // "Create function" "false"
// ERROR: A 'return' expression required in a function with a block body ('{...}') // ERROR: A 'return' expression required in a function with a block body ('{...}')
// ERROR: Cannot infer a type for this parameter. Please specify it explicitly.
// ERROR: Cannot infer a type for this parameter. Please specify it explicitly.
// ERROR: Expression 'return groupsByLength.values.firstOrNull { group -> {group.size == maximumSizeOfGroup} }' cannot be a selector (occur after a dot) // ERROR: Expression 'return groupsByLength.values.firstOrNull { group -> {group.size == maximumSizeOfGroup} }' cannot be a selector (occur after a dot)
// ERROR: Unresolved reference: groupBy // ERROR: Type inference failed: inline fun <T> Iterable<T>.firstOrNull(predicate: (T) -> Boolean): T?<br>cannot be applied to<br>receiver: Collection<List<String>> arguments: ((List<String>) -> () -> Boolean)<br>
// ERROR: Unresolved reference: it // ERROR: Type mismatch: inferred type is (List<String>) -> () -> Boolean but (List<String>) -> Boolean was expected
// ERROR: Unresolved reference: maximumSizeOfGroup // ERROR: Unresolved reference: maximumSizeOfGroup
fun doSomethingStrangeWithCollection(collection: Collection<String>): Collection<String>? { fun doSomethingStrangeWithCollection(collection: Collection<String>): Collection<String>? {
@@ -2,7 +2,7 @@
fun test() { fun test() {
fun foo(i: Int, s: String): Int { fun foo(i: Int, s: String): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
fun nestedTest(): Int { fun nestedTest(): Int {
@@ -7,7 +7,7 @@ class A {
} }
private fun foo(i: Int, s: String): Int { private fun foo(i: Int, s: String): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
} }
@@ -6,6 +6,6 @@ class A<T>(val t: T) {
val x: A<Int> by foo(t, "") val x: A<Int> by foo(t, "")
private fun foo(t: T, s: String): ReadOnlyProperty<A<T>, A<Int>> { private fun foo(t: T, s: String): ReadOnlyProperty<A<T>, A<Int>> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -6,6 +6,6 @@ class A<T>(val t: T) {
var x: A<Int> by foo(t, "") var x: A<Int> by foo(t, "")
private fun foo(t: T, s: String): ReadWriteProperty<A<T>, A<Int>> { private fun foo(t: T, s: String): ReadWriteProperty<A<T>, A<Int>> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -7,7 +7,7 @@ class A {
} }
private fun foo(i: Int, s: String): Int { private fun foo(i: Int, s: String): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
} }
@@ -5,6 +5,6 @@ class A {
} }
private fun foo() { private fun foo() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -2,7 +2,7 @@
class A { class A {
fun foo(): String { fun foo(): String {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -5,5 +5,5 @@ fun test(o: Any) {
} }
fun foo(o: String) { fun foo(o: String) {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -6,5 +6,5 @@ fun test(s: String?) {
} }
fun foo(s: String) { fun foo(s: String) {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
@@ -5,6 +5,6 @@ fun isModified(setOptions: SetOptions, c: C) = c.foo(setOptions)
class C { class C {
fun foo(options: SetOptions): Any { fun foo(options: SetOptions): Any {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }
@@ -6,6 +6,6 @@ class A<T>(val n: T) {
} }
private fun foo(i: Int, s: String): A<Int> { private fun foo(i: Int, s: String): A<Int> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
} }
} }

Some files were not shown because too many files have changed in this diff Show More