blob: 074cf69c452b031dd17b6a60ba926f8ebac07499 [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 res = "Instance of '" + H.Primitives_objectTypeName(new V.Foo(5)) + "'";
if (typeof dartPrint == "function")
dartPrint(res);
else if (typeof console == "object" && typeof console.log != "undefined")
console.log(res);
else if (!(typeof window == "object")) {
if (!(typeof print == "function"))
throw "Unable to print message: " + String(res);
print(res);
}
}