ZacSweers/kotlin-compile-testing

Unresolved references

Closed this issue · 1 comments

This test will fail:

val code = """
    package com.mycomposable.test
        
    data class ViewState(val field: Int)
    
    @Composable
    fun ScreenA(state: ViewState) { }
""".trimIndent()

With Unresolved reference 'Composable' or any other I put in the test class. Can we somehow make it ignore the references? I was using tschuchort library and this was not an issue, only when I switched to yours. This happens with or without the ksp2 enabled.

Thanks!

This is a library for testing compilations and that test does not compile. You need to import the composable annotation