Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class declares 1 type parameters, but 0 were provided. #1

Open
beigirad opened this issue Apr 13, 2021 · 0 comments
Open

Class declares 1 type parameters, but 0 were provided. #1

beigirad opened this issue Apr 13, 2021 · 0 comments

Comments

@beigirad
Copy link

There's an issue when I use a nullable field.

java.lang.IllegalArgumentException: Class declares 1 type parameters, but 0 were provided.

	at kotlin.reflect.full.KClassifiers.createType(KClassifiers.kt:50)
	at kotlin.reflect.full.KClassifiers.createType$default(KClassifiers.kt:42)
	at com.worldsnas.faketory.Faketory.createType(Faketory.kt:352)
	at com.worldsnas.faketory.Faketory.resolveParameter(Faketory.kt:254)
	at com.worldsnas.faketory.Faketory.internalCreate(Faketory.kt:193)
	at com.worldsnas.faketory.Faketory.create(Faketory.kt:148)
    data class Hello(
        val id: Int,
        val name: String?
    )

    @Test
    fun testHello() {
        Faketory.create<Hello>()
    }

This issue occurred on 1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant