You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
traitModule {
sealedtraitTreecaseclassLetL() extendsTree
}
classPatmat[T<:Module](valmodule:T) {
defpatmat(tree: module.Tree) = tree match {
case module.LetL() =>???
}
}
Triggers the following warning:
patmat-acc.scala:8:warning: match may not be exhaustive.
It would fail on the following input: LetL()
defpatmat(tree: module.Tree) = tree match {
^
one warning found
The warning isn't triggered if
classPatmat[T<:Module](valmodule:T)
is replaced by
classPatmat(valmodule:Module)
The text was updated successfully, but these errors were encountered:
The following code:
Triggers the following warning:
The warning isn't triggered if
is replaced by
The text was updated successfully, but these errors were encountered: