Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • shchen/cs320
  • raveendr/cs320
  • mwojnaro/cs320
3 results
Show changes
Showing
with 59 additions and 0 deletions
1 // Tab indented
2 // Space indented
object Args
foo(bar, )
end Args
object Args
foo(bar baz)
end Args
object ClassDef
case class Foo()
end ClassDef
object ClassDef
case class Foo extends Bar
end ClassDef
object ClassDef
case class Foo(x, y: Int(32)) extends Bar
end ClassDef
object ClassDef
case class Foo(Int, y: Int(32)) extends Bar
end ClassDef
/* This comment is closed twice,
which should not be interpreted as a single closed comment
*/*/
\ No newline at end of file
object FunDef
def foo: Int(32) = { 42 }
end FunDef
object FunDef
def foo(i: Int(32)) = { 42 }
end FunDef
object FunDef
def foo(i): Int(32) = { 42 }
end FunDef
object FunDef
def foo(i: Int(32)): Int(32) = 42
end FunDef
object FunDef
def foo(i: Int(32),): Int(32) = { 42 }
end FunDef
object FunDef
def foo(i: Int(32) j: Int(32)): Int = { 42 }
end FunDef
object IfPrecedence
if (true) { 1 } else { 0 } + 42
end IfPrecedence
\ No newline at end of file
object IntError
def foo(): Int = { 42 }
end IntError
\ No newline at end of file
object IntError
def foo(): Int(64) = { 42 }
end IntError
\ No newline at end of file
object IntError
def foo(): Int(true) = { 42 }
end IntError
\ No newline at end of file
object Match
x match {
case y => z
} + 1
end Match