Hello guys,
following code brings error:
class Monkey {
}
class Horse {
proc goWith(monkey:Monkey) {
writeln("OK");
}
}
proc main () {
var horse: Horse = new Horse();
horse.goWith(nil);
}
The error is:
test.chpl:1: internal error: RES0081 chpl Version 1.13.1
Internal errors indicate a bug in the Chapel compiler ("It's us, not you"),
and we're sorry for the hassle. We would appreciate your reporting this bug --
please see http://chapel.cray.com/bugs.html for instructions. In the meantime,
the filename + line number above may be useful in working around the issue.
But, following modified code doesn't bring the error:
class Monkey {
}
class Horse {
proc goWith(monkey:Monkey) {
writeln("OK");
}
}
proc main () {
var horse: Horse = new Horse();
var monkey: Monkey = nil;
horse.goWith(monkey);
}
My OS: Linux Mint 17.2 Cinnamon 64-bit
Best Regards
Vitali Baumtrok
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Chapel-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-bugs