1/* 2* Copyright (c) Microsoft Corporation. All rights reserved. 3* Copyright (c) 2023 Huawei Device Co., Ltd. 4* Licensed under the Apache License, Version 2.0 (the "License"); 5* you may not use this file except in compliance with the License. 6* You may obtain a copy of the License at 7* 8* http://www.apache.org/licenses/LICENSE-2.0 9* 10* Unless required by applicable law or agreed to in writing, software 11* distributed under the License is distributed on an "AS IS" BASIS, 12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13* See the License for the specific language governing permissions and 14* limitations under the License. 15* 16* This file has been modified by Huawei to verify type inference by adding verification statements. 17*/ 18 19// === tests/cases/conformance/declarationEmit/declarationEmitWorkWithInlineComments.ts === 20declare function AssertType(value:any, type:string):void; 21 22export class Foo { 23 constructor( 24 /** @internal */ 25 public isInternal1: string, 26 /** @internal */ public isInternal2: string, /** @internal */ 27 public isInternal3: string, 28 // @internal 29 public isInternal4: string, 30 // nothing 31 /** @internal */ 32 public isInternal5: string, 33 /* @internal */ public isInternal6: string /* trailing */, 34 /* @internal */ public isInternal7: string, /** @internal */ 35 // not work 36 public notInternal1: string, 37 // @internal 38 /* not work */ 39 public notInternal2: string, 40 /* not work */ 41 // @internal 42 /* not work */ 43 public notInternal3: string, 44 ) { } 45} 46 47export class Bar { 48 constructor(/* @internal */ public isInternal1: string) {} 49} 50 51export class Baz { 52 constructor(/* @internal */ 53 public isInternal: string 54 ) {} 55} 56 57