Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ internal class TypeHelper {
}

else -> {
throw _root_ide_package_.kotlin.ClassCastException(
throw ClassCastException(
"Cannot cast ${v.javaClass.name} to number"
)
}
Expand Down
4 changes: 2 additions & 2 deletions packages/kotlin/src/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
agp = "8.12.3"
kotlin = "2.2.20"
kotlin = "2.4.10"

kotlinx-coroutines = "1.10.2"
kotlinx-coroutines = "1.11.0"
dokka = "2.0.0"

espressoCore = "3.7.0"
Expand Down
5 changes: 3 additions & 2 deletions packages/transpiler/src/kotlin/KotlinAstPrinter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1993,9 +1993,10 @@ export default class KotlinAstPrinter extends AstPrinterBase {
protected override writeSpreadExpression(expr: cs.SpreadExpression) {
this.write('*');
this.writeExpression(expr.expression);
const valueDeclaration = expr.expression.tsSymbol?.valueDeclaration;
if (
expr.expression.tsSymbol?.valueDeclaration?.kind !== ts.SyntaxKind.Parameter ||
(expr.expression.tsSymbol?.valueDeclaration as ts.ParameterDeclaration).dotDotDotToken === undefined
valueDeclaration?.kind !== ts.SyntaxKind.Parameter ||
(valueDeclaration as ts.ParameterDeclaration).dotDotDotToken === undefined
) {
this.write('.spread()');
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/bridge/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { ResolvedConfig } from './config';
/**
* @internal
*/
export const enum BundlerKind {
export enum BundlerKind {
Rollup = 'rollup',
Rolldown = 'rolldown'
}
Expand Down
Loading