Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Kotlin Bootcamp issue: Lesson 2, Task 4, Step 2.2, error while running #242

@michaelarie96

Description

@michaelarie96

Describe the problem
When running, the kotlin REPL output is:

error: type mismatch: inferred type is Int? but Int was expected
fishFoodTreats = fishFoodTreats?.dec()

In which step of the codelab can this issue be found?
Task 4, Step 2.2

Steps to reproduce?
Run the code in kotlin REPL

Versions
2024.3

Additional information
Screenshot 2024-11-27 at 13 26 43

codelab: kotlin-bootcamp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions