2016-02-02 05:59:37 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @allowJs: true
|
|
|
|
// @Filename: a.js
|
|
|
|
//// function Person(age) {
|
|
|
|
//// if (age >= 18) {
|
|
|
|
//// this.canVote = true;
|
|
|
|
//// } else {
|
|
|
|
//// this.canVote = 23;
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
//// let x = new Person(100);
|
|
|
|
//// x.canVote/**/;
|
|
|
|
|
2017-02-06 00:18:27 +01:00
|
|
|
verify.quickInfoAt("", "(property) Person.canVote: number | boolean");
|