Skip to content

Commit

Permalink
Merge pull request #9117 from WalterBright/fix19499
Browse files Browse the repository at this point in the history
fix Issue 19499 - __c_long_double has exact match with double
merged-on-behalf-of: Iain Buclaw <ibuclaw@gdcproject.org>
  • Loading branch information
dlang-bot committed Dec 28, 2018
2 parents d7bf157 + e265d0c commit 7581ed9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 32 deletions.
2 changes: 0 additions & 2 deletions src/dmd/mtype.d
Expand Up @@ -3303,8 +3303,6 @@ extern (C++) final class TypeBasic : Type
* with a MATCH.convert
*/
tob = to.toBasetype().isTypeBasic();
if (tob)
return implicitConvTo(tob);
}
else
return MATCH.nomatch;
Expand Down
30 changes: 0 additions & 30 deletions test/compilable/test19201.d

This file was deleted.

6 changes: 6 additions & 0 deletions test/compilable/test19499.d
@@ -0,0 +1,6 @@
// https://issues.dlang.org/show_bug.cgi?id=19499

enum __c_long_double : double;
enum A(T : double) = true;
enum A(T : __c_long_double) = false;
pragma(msg, A!double);

0 comments on commit 7581ed9

Please sign in to comment.