[Issue 11896] New: isVirtualMethod related GitHub HEAD regression (works with 2.064)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 10 09:14:06 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11896
Summary: isVirtualMethod related GitHub HEAD regression (works
with 2.064)
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: puneet at coverify.org
--- Comment #0 from Puneet Goel <puneet at coverify.org> 2014-01-10 09:14:05 PST ---
Here is the reduced testcase. With the GitHub HEAD DMD I get:
$ dmd -c test.d
test.d(8): Error: function test.foo!int.foo.bar () is not callable using
argument types (foo!int)
test.d(12): Error: template instance test.foo!int error instantiating
// File test.d
class foo(T = int) {
static if(! __traits(isVirtualMethod, zoo)) {}
alias foo!(T) foobar;
static foobar _bar;
static foobar bar() {return _bar;}
static void bar(foobar foo) {_bar = foo;}
static foobar zoo() {
bar = new foobar;
return bar;
}
}
foo!(int) baz;
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list