blob: a95670c09ff993a51577da13fde5437050d69490 [file] [log] [blame]
// Expectation for test:
// class Foo {
// factory Foo.make(x) = Foo.create;
// var x;
// Foo.create(this.x);
// }
// main() {
// print(new Foo.make(5));
// }
function() {
var line = "Instance of '" + H.Primitives_objectTypeName(new V.Foo(5)) + "'";
if (typeof dartPrint == "function")
dartPrint(line);
else if (typeof console == "object" && typeof console.log != "undefined")
console.log(line);
else if (!(typeof window == "object")) {
if (!(typeof print == "function"))
throw "Unable to print message: " + String(line);
print(line);
}
}