Drop inlineOptions and fix forgotten usages

This commit is contained in:
Denis Zharkov
2015-09-23 12:07:07 +03:00
parent 67486b867b
commit 098f5462eb
58 changed files with 13 additions and 150 deletions
@@ -1,6 +1,5 @@
package test
import kotlin.InlineOption.*
abstract class A<R> {
abstract fun getO() : R
@@ -1,6 +1,5 @@
package test
import kotlin.InlineOption.*
abstract class A<R>(val param : R) {
abstract fun getO() : R
@@ -1,6 +1,5 @@
//NO_CHECK_LAMBDA_INLINING
import builders.*
import kotlin.InlineOption.*
inline fun testAllInline(f: () -> String) : String {
val args = arrayOf("1", "2", "3")
@@ -1,6 +1,5 @@
package test
import kotlin.InlineOption.*
inline fun <R> doWork(crossinline job: ()-> R) : R {
return notInline({job()})
@@ -1,6 +1,5 @@
package test
import kotlin.InlineOption.*
inline fun <R> doWork(crossinline job: ()-> R) : R {
val k = 10;
-1
View File
@@ -1,6 +1,5 @@
package test
import kotlin.InlineOption.*
public class Data()
@@ -1,6 +1,5 @@
package zzz
import kotlin.InlineOption.*
inline fun calc(crossinline lambda: () -> Int): Int {
return doCalc { lambda() }
@@ -1,6 +1,5 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
import kotlin.InlineOption.*
fun test1(param: String): String {
var result = "fail1"
@@ -1,6 +1,5 @@
package test
import kotlin.InlineOption.*
inline fun <R> call(crossinline f: () -> R) : R {
return {f()} ()
@@ -1,6 +1,5 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
import kotlin.InlineOption.*
fun testSameCaptured() : String {
var result = 0;
@@ -1,6 +1,5 @@
package test
import kotlin.InlineOption.*
inline fun <R> doWork(crossinline job: ()-> R) : R {
val k = 10;
@@ -1,6 +1,5 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
import kotlin.InlineOption.*
inline fun test1(crossinline param: () -> String): String {
var result = "fail"
@@ -1,6 +1,5 @@
package test
import kotlin.InlineOption.*
inline fun <R> doWork(crossinline job: ()-> R) : R {
return notInline({job()})
@@ -1,5 +1,5 @@
import builders.*
import kotlin.InlineOption.*
fun test(): String {
var res = "Fail"
@@ -1,5 +1,5 @@
import builders.*
import kotlin.InlineOption.*
fun test(): String {
var res = "Fail"
@@ -1,5 +1,5 @@
import builders.*
import kotlin.InlineOption.*
inline fun test(): String {
var res = "Fail"
@@ -1,5 +1,5 @@
import builders.*
import kotlin.InlineOption.*
fun test(): String {
var res = "Fail"
@@ -1,5 +1,5 @@
import builders.*
import kotlin.InlineOption.*
fun test(): String {
var res = "Fail"
@@ -1,5 +1,5 @@
import builders.*
import kotlin.InlineOption.*
inline fun test(): String {
var res = "Fail"
@@ -1,5 +1,5 @@
import builders.*
import kotlin.InlineOption.*
fun box(): String {
return test()
@@ -1,5 +1,5 @@
import builders.*
import kotlin.InlineOption.*
fun box(): String {
return test{"OK"}
+1 -1
View File
@@ -1,5 +1,5 @@
import builders.*
import kotlin.InlineOption.*
inline fun test(): String {
var res = "Fail"
@@ -1,4 +1,3 @@
import kotlin.InlineOption.*
inline fun<reified T> createArray(n: Int, crossinline block: () -> T): Array<T> {
return Array<T>(n) { block() }
@@ -1,4 +1,3 @@
import kotlin.InlineOption.*
inline fun<reified T> createArray(n: Int, crossinline block: () -> T): Array<T> {
return Array<T>(n) { block() }
@@ -1,4 +1,3 @@
import kotlin.InlineOption.*
inline fun<reified T1, reified T2> createArray(n: Int, crossinline block: () -> Pair<T1, T2>): Pair<Array<T1>, Array<T2>> {
return Pair(Array(n) { block().first }, Array(n) { block().second })
@@ -1,4 +1,3 @@
import kotlin.InlineOption.*
class A {
fun foo() {
@@ -1,6 +1,5 @@
package foo
import kotlin.InlineOption.*
class Foo {
@@ -1,6 +1,5 @@
package foo
import kotlin.InlineOption.*
class Foo {