Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build manager: Extending sealed class hierarchy does not recompile pattern matches, missing compile warning #2559

Closed
scabug opened this issue Nov 2, 2009 · 2 comments
Assignees
Labels

Comments

@scabug
Copy link

scabug commented Nov 2, 2009

A.scala:

sealed trait A
class B extends A
class C extends A
// class E extends A

D.scala:

object D {
	def x(a: A) =
	    a match {
	        case _: B => ()
	        case _: C => ()
	    }
}
  1. Compile.
  2. Uncomment class E in A.scala
  3. Mark A.scala modified
  4. Manager recompiles A.scala but not D.scala. The compile warning about non-exhaustiveness is missed.
@scabug
Copy link
Author

scabug commented Nov 2, 2009

Imported From: https://issues.scala-lang.org/browse/SI-2559?orig=1
Reporter: @harrah

@scabug
Copy link
Author

scabug commented Dec 10, 2009

@hubertp said:
(In r20085) Closes #2559

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants