My project configuration actually was wrong, but I cannot say to what extend. After recreating the multi module project with intellij's wizard, the expect/actual declarations are properly used and the error disappeard.