You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code should not compile. The compiler should give a compilation error.
The syntax specified in the specification, section 6.22, requires a block inside curly braces after the try keyword. A simple expression after try is not allowed.
=== What do you see instead? ===
scala>try1
res0:Int=1
=== What versions of the following are you using? ===
Scala: 2.8.1
Java: 1.6.0_21
Operating system: Windows Vista
The text was updated successfully, but these errors were encountered:
=== What steps will reproduce the problem ===
=== What is the expected behavior? ===
The code should not compile. The compiler should give a compilation error.
The syntax specified in the specification, section 6.22, requires a block inside curly braces after the try keyword. A simple expression after try is not allowed.
=== What do you see instead? ===
=== What versions of the following are you using? ===
The text was updated successfully, but these errors were encountered: