<Type mismatch: inferred type is Unit but List&lt;...
# forum
r
Type mismatch: inferred type is Unit but List<ObjName> was expected When google on this error, than I realize I’m not first one! And I’m quite new - except two Udemy courses - to Kotlin but I try to find what’s going on. It is existing code what I’m taking: override fun getSubject(caseId: CaseId, reviewSubjectId: ReviewSubjectId): ReviewSubject = usingDSL { context -> context.subjectSelect(caseId) .from(REVIEW_SUBJECT) .where(REVIEW_SUBJECT.CASE_ID.eq(caseId.value))...