Skip to content

Commit

Permalink
Merge pull request #2360 from JinShil/impl_enum_error
Browse files Browse the repository at this point in the history
Error for implicit comparison of different enums
  • Loading branch information
wilzbach committed May 6, 2018
2 parents 26bc192 + 8c9a7fa commit 8b0c254
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deprecate.dd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $(SPEC_S Deprecated Features,
$(THEAD Feature, Spec, Dep, Error, Gone)
$(TROW $(DEPLINK Hexstring literals), 2.079, 2.079,  ,  )
$(TROW $(DEPLINK Class allocators and deallocators),  , 2.080,  ,  )
$(TROW $(DEPLINK Implicit comparison of different enums), 2.075, 2.075,  ,  )
$(TROW $(DEPLINK Implicit comparison of different enums), 2.075, 2.075, 2.081,  )
$(TROW $(DEPLINK Implicit string concatenation), 2.072, 2.072,  ,  )
$(TROW $(DEPLINK Using the result of a comma expression), 2.072, 2.072, 2.079,  )
$(TROW $(DEPLINK delete),  , 2.079,  ,  )
Expand Down Expand Up @@ -137,8 +137,8 @@ $(H3 $(DEPNAME Implicit comparison of different enums))
}
enum OtherStatus
{
ok
no,
ok,
no
}
static assert(Status.good == OtherStatus.ok);
---
Expand Down

0 comments on commit 8b0c254

Please sign in to comment.