1
1
Fork 0

Simplified task a bit based on the feedback

https://github.com/svtk/AtomicKotlinCourse/issues/22
This commit is contained in:
Svetlana Isakova 2021-07-20 12:22:27 +02:00
parent 2ca2af5f99
commit 291998f292
4 changed files with 1 additions and 11 deletions

View File

@ -28,8 +28,4 @@ fun main() {
// val bb = boolean + boolean
// val ic = int + character
// val ds = double + string
println("The type that can't be combined " +
"with itself using '+':")
println("Boolean")
}

View File

@ -12,8 +12,5 @@ files:
- offset: 682
length: 89
placeholder_text: TODO() // write some examples
- offset: 861
length: 7
placeholder_text: ???
- name: test/output.txt
visible: false

View File

@ -3,8 +3,7 @@
Attempt to combine various `val`s of different types using the `+` operator.
Only combine two at a time, and assign each combination to a `val` result. See
which types combine. On the console, display the name of the type that can be
combined with any other type if it goes first, and the name of the type that
can't be combined with itself using `+`.
combined with any other type if it goes first.
Replace the lines containing `TODO()` in the solution code with working code.
If you don't remove these lines, you'll see an error saying "Operation is not

View File

@ -1,4 +1,2 @@
The type that can be combined with every other type using '+':
String
The type that can't be combined with itself using '+':
Boolean