-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Incorrect Space difference in pattern matching exhaustivity #4880
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
Labels
Comments
More specifically, the following code should get a warning, but it doesn't: abstract class AbstractFile
class PlainFile(path: String) extends AbstractFile
class VirtualFile(name: String) extends AbstractFile
abstract class ZipArchive(path: String) extends AbstractFile {
sealed abstract class Entry(name: String) extends VirtualFile(name)
class DirEntry(path: String) extends Entry(path)
}
object Test {
def foo(file: AbstractFile) = file match {
case ze: ZipArchive#Entry =>
}
} |
Just to keep track of things, this is blocking #4869 |
I'll work on this during the weekend to unblock #4869. |
liufengyun
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 5, 2018
liufengyun
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 7, 2018
Blaisorblade
pushed a commit
to dotty-staging/dotty
that referenced
this issue
Aug 12, 2018
Blaisorblade
added a commit
that referenced
this issue
Aug 13, 2018
Fix #4880: always instantiate prefix tvar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Details here: #4869 (comment)
The text was updated successfully, but these errors were encountered: