diff --git a/puzzlers/pzzlr-072.html b/puzzlers/pzzlr-072.html new file mode 100644 index 0000000..8475b23 --- /dev/null +++ b/puzzlers/pzzlr-072.html @@ -0,0 +1,60 @@ +

Strung Along

+ + + + + + + + + + + + + + + +
Contributed byA. P. Marki
SourceGitter
First tested with Scala version2.12.6
+
+

What is the result of executing the following code?

+
+val StringContext: String = s"hello, world"
+
+
    +
  1. It fails to compile with a type mismatch. It found a StringContext but requires a String.
  2. +
  3. It fails to compile with a type mismatch. It found a String but requires an Int.
  4. +
  5. It compiles but at runtime it throws StringIndexOutOfBoundsException.
  6. +
  7. It fails to compile because method s is not a member of String.
  8. +
  9. It fails to compile by throwing scala.reflect.internal.MissingRequirementError: object scala.StringContext in compiler mirror not found.
  10. +
+
+ +