const and readonly should be converted to val
Open
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