Skip to content

[Bug]: Expecting a top level declaration #446

@ShoaibKakal

Description

@ShoaibKakal

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • I have searched StackOverflow

What happened?

After changing package name from 'dev.atick' to 'dev.shoaib', I'm facing one weird issue in one Kotlin extension file where red line is shown on ViewModel text that says Expecting a top level declaration.
dev.atick word is now in only 4 firebase related files.
Is there anything I am missing?

context(viewModel: ViewModel)
inline fun <T : Any> MutableStateFlow<UiState<T>>.updateWith(
    crossinline operation: suspend T.() -> Result<Unit>,
) {...}

Relevant logcat output

e: file:///Users/user/StudioProjects/mirror-you/core/ui/src/main/kotlin/dev/shoaib/core/ui/utils/StatefulComposable.kt:139:20 Unresolved reference 'ViewModel'.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions