Simplified task a bit based on the feedback
https://github.com/svtk/AtomicKotlinCourse/issues/22
This commit is contained in:
parent
2ca2af5f99
commit
291998f292
|
@ -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")
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue