1/* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 161..toString(); 171.0.toString(); 181. + 2.0 + 3.; 19 20var i: number = 1; 21var compactTest1 = i.toString(); 22var compactTest3 = 3 .toString(); 23var compactTest4 = 3 .toString(); 24var compactTest5 = 3 .toString(); 25var compactTest6 = 3.['toString'](); 26var compactTest7 = 3 27 .toString(); 28var compactTest8 = new Number(4).toString(); 29var compactTest9 = 3. + 3.; 30var compactTest10 = 0 /* comment */.toString(); 31var compactTest11 = 3. /* comment */.toString(); 32var compactTest12 = 3 33 /* comment */ .toString(); 34var test122 = 3 35/* comment */.toString(); 36var test1222 = 3 37 38 .toString(); 39var compactTest13 = 3. 40 /* comment */.toString(); 41var compactTest14 = 3 42 // comment 43 .toString(); 44var compactTest15 = 3. 45 // comment 46 .toString(); 47var compactTest16 = 3 // comment time 48 .toString(); 49var compactTest17 = 3. // comment time again 50 .toString();