Files
kotlin/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/augmentedAssignmentAndSquareBrackets.java
2014-06-26 20:57:40 +04:00

41 lines
659 B
Java
Vendored

import org.jetbrains.annotations.NotNull;
class Container {
@NotNull
Value get(Runnable i) {
i.run();
return new Value();
}
void set(Runnable i, @NotNull Value value) {
i.run();
}
}
class Value {
@NotNull Value plus(Runnable i) {
i.run();
return this;
}
@NotNull Value minus(Runnable i) {
i.run();
return this;
}
@NotNull Value times(Runnable i) {
i.run();
return this;
}
@NotNull Value div(Runnable i) {
i.run();
return this;
}
@NotNull Value mod(Runnable i) {
i.run();
return this;
}
}