Skip to content

Instantly share code, notes, and snippets.

@j3h
j3h / broken.scala
Created September 18, 2012 16:00
Possible scala compiler bug
/*
* If I remove the definition of unused (or make it private[this]),
* then it fails to compile with:
*
* $ ./bin/scala -version
* Scala code runner version 2.9.2 -- Copyright 2002-2011, LAMP/EPFL
*
* $ ./bin/scala ~/broken.scala
* /Users/jhoyt/broken.scala:18: error: not found: value i
* val x = (f: Foo, i: Int) => f.copy(x = i)