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 112 additions and 0 deletions
object MatchError
abstract class Foo
case class Bar() extends Foo
case class Baz(i: Int(32)) extends Foo
Baz(1) match { case Baz(2) => () }
end MatchError
object MatchError
abstract class Foo
case class Bar() extends Foo
case class Baz(f: Foo) extends Foo
Baz(Bar()) match { case Baz(Baz(_)) => () }
end MatchError
object MatchError
abstract class Foo
case class Bar(s: String) extends Foo
Bar("foo") match { case Bar("foo") => () }
end MatchError
object MinimalError
error("")
end MinimalError
object ShortCircuit
false || error("")
end ShortCircuit
0
1
1024
27
10
1
2
222
3
6
4
8
2
1
0
0
-1
-1
1
-1
test finished
\ No newline at end of file
correct
not correct
not correct
correct
test finished
\ No newline at end of file
test finished
\ No newline at end of file
42
42
2
3
prim
prim
not prim
not prim
test finished
\ No newline at end of file
5! = 120
10! = 3628800
42
\ No newline at end of file
This side effect should only happen once!
yes