Bug 394 – associative array of interfaces causes crash
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-10-02T17:35:00Z
Last change time
2014-02-15T13:22:08Z
Assigned to
bugzilla
Creator
digitalmars-com
Comments
Comment #0 by digitalmars-com — 2006-10-02T17:35:12Z
Reported on newsgroup and filed in dstress, but couldn't find a bug.
// @author@ Bastiaan Veelo <[email protected]>
// @date@ 2005-09-04
// @uri@ news:[email protected]
module dstress.run.a.associative_array_18_A;
interface Interface{
int test(int);
}
class Class : Interface{
int test(int i){
return i+1;
}
}
int main(){
Class[Interface] aa;
Class o = new Class();
aa[o] = o;
return 0;
}