Kotlin / Kotlin/dukat

const and readonly should be converted to val

Open
#44 2 comments 0 reactions 0 assignees View on GitHub
better-translation
Dominant language
Kotlin
Stars
591
Forks
40
PR merge metrics
No merged PRs in 30d

Description

```typescript
export declare const SomeConst: string;
export interface InterfaceA {
readonly readOnlyProp: boolean;
}
```
```kotlin
external var SomeConst: String = definedExternally // <-- should be val
external interface InterfaceA {
var readOnlyProp: Boolean // <------------------------should be val
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing Dukat's TypeScript-to-Kotlin declaration conversion for const declarations and readonly properties. Reproduce the example from the issue, then verify that SomeConst and readOnlyProp are emitted as val rather than var.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.