Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Control flow for constructor initialized properties#37920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ahejlsberg merged 10 commits intomasterfromcontrolFlowConstructorProperties
Apr 28, 2020
Merged
Changes from1 commit
Commits
Show all changes
10 commits
Select commitHold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Fix lint error
  • Loading branch information
@ahejlsberg
ahejlsberg committedApr 14, 2020
commit0c9c76a14a8e0d61fe410e2633f52f8e1f68ce05
2 changes: 1 addition & 1 deletionsrc/compiler/checker.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7552,7 +7552,7 @@ namespace ts {
const containerObjectType = getJSContainerObjectType(symbol.valueDeclaration, symbol, container);
return containerObjectType || getWidenedLiteralType(checkExpressionCached(container));
}
let type = undefined;
let type;
let definedInConstructor = false;
let definedInMethod = false;
// We use control flow analysis to determine the type of the property if the property qualifies as a constructor
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp