mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Merge pull request #2107 from Microsoft/destructuring_classElements
do not include constructor parameters with binding patterns as names whe...
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////class A {
|
||||
//// x: any
|
||||
//// constructor([a]: any) {
|
||||
//// }
|
||||
////}
|
||||
////class B {
|
||||
//// x: any;
|
||||
//// constructor( {a} = { a: 1 }) {
|
||||
//// }
|
||||
////}
|
||||
|
||||
verify.getScriptLexicalStructureListCount(6); // 2x(class + field + constructor)
|
||||
Reference in New Issue
Block a user