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 78 additions and 0 deletions
object Operand
true || (x && )
end Operand
object TypeWidth
def foo(): Boolean(32) = { true }
end TypeWidth
\ No newline at end of file
object Unary
--x
end Unary
object UnlosedModule
object UnmatchedModule
end Module
\ No newline at end of file
object UnmatchedParen
1 + ( 2 - 3
end UnmatchedParen
object Val
1 + val x: Int(32) = 42; x
end Val
object Val
val x = 42; x
end Val
object Val
val x: Int(32) = val y: Int = 10; 5; 42
end Val
object Foo.bar
end Foo.bar
object WrongQName
abstract class Foo.bar
end WrongQName
object WrongQName
case class Foo() extends Baz.bar
end WrongQName
object WrongQName
42 + foo.bar + 1
end WrongQName
object Assoc
((1 + 2) - 3);
((x / y) * z);
-(42);
((1 < 2) <= 3);
(true || false);
((1 < 2) && (2 < 3))
end Assoc
object AssocSemicolon
1;
2;
val x: Int(32) =
z;
val y: Int(32) =
w;
u
end AssocSemicolon
object ChainedMatch
0 match {
case x =>
x
} match {
case 42 =>
"Yeah"
}
end ChainedMatch
\ No newline at end of file
object CaseClassDefs
abstract class Foo
case class Bar() extends Foo
case class Bar(v: Int(32)) extends Foo
abstract class Foo
case class Bar(v: Int(32), v: A) extends Foo
end CaseClassDefs
object Empty
end Empty
object ErrorToken1
error("")
end ErrorToken1
object ErrorToken2
(false || error(""))
end ErrorToken2