Skip to content

Instantly share code, notes, and snippets.

@Dessix
Last active January 17, 2017 06:37
Show Gist options
  • Save Dessix/313635c089705dd11805b24e41fef845 to your computer and use it in GitHub Desktop.
Save Dessix/313635c089705dd11805b24e41fef845 to your computer and use it in GitHub Desktop.
Fable - Compiled Result of Inline Getter/Setter Get invocations - See https://github.com/fable-compiler/Fable/issues/656
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TestClass = undefined;
var _Symbol2 = require("fable-core/umd/Symbol");
var _Symbol3 = _interopRequireDefault(_Symbol2);
var _Util = require("fable-core/umd/Util");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
class TestClass {
[_Symbol3.default.reflection]() {
return {
type: "Main.TestClass",
properties: {
Item: _Util.Any,
prop: "string"
}
};
}
}
exports.TestClass = TestClass;
(0, _Symbol2.setType)("Main.TestClass", TestClass);
(function (args) {
const tc = ["test"];
if ((tc[0] = v) !== "test") {
throw new Error("Value not correctly accessed");
}
return 0;
})(process.argv.slice(2));
//# sourceMappingURL=Main.js.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment