eclipse-archived/ceylon-ide-intellij

Formatting produce invalid code for string interpolation with metainfo

MikhailMalyutin opened this issue · 0 comments

Next code:

shared void subscribeToDownUpConversion<D, T>(HashMap<Key,T> convertedCache, T(D) adaptFunction) given T satisfies BaseEntity
        given D satisfies BaseEntity {
    ebSubscribe<D>(getUpVersionTopic(`D`)).subscribe((key-> D user) {
        log.info("Down to up conversion from`` `D`.string`` to `` `T`.string`` ``user``");
        convertedCache.put(user.id, adaptFunction(user));
    });
}

If I try to reformat - I obtain invalid code:

shared void subscribeToDownUpConversion<D, T>(HashMap<Key,T> convertedCache, T(D) adaptFunction) given T satisfies BaseEntity
        given D satisfies BaseEntity {
    ebSubscribe<D>(getUpVersionTopic(`D`)).subscribe((key-> D user) {
        log.info("Down to up conversion from```D`.string`` to ```T`.string`` ``user``");
        convertedCache.put(user.id, adaptFunction(user));
    });
}