D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6119 - Assertion failure: '0' on line 1118 in file 'glue.c'
Summary: Assertion failure: '0' on line 1118 in file 'glue.c'
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-06 23:41 UTC by Walter Bright
Modified: 2012-05-10 19:52 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Walter Bright 2011-06-06 23:41:23 UTC
void startsWith(alias pred) ()   if (is(typeof(pred('c', 'd')) : bool))
{
}

void startsWith(alias pred) ()   if (is(typeof(pred('c', "abc")) : bool))
{
}

void test()
{
    startsWith!((a, b) { return a == b; })();
}
Comment 2 Kenji Hara 2012-05-10 19:52:21 UTC
*** Issue 6257 has been marked as a duplicate of this issue. ***