Я пробовал. И Int и Long прописывать. различие только в выдаваемой ошибке при компиляции.
Dao.java:22: error: Query method parameters should either be a type that can be converted into a database column or a List / Array that contains such type. You can consider adding a Type Adapter for this.
kotlin.coroutines.Continuation<? super java.lang.Integer> continuation);
Dao.java:22: error: Query method parameters should either be a type that can be converted into a database column or a List / Array that contains such type. You can consider adding a Type Adapter for this.
kotlin.coroutines.Continuation<? super java.lang.Integer> continuation);
"? super kotlin.Unit" на "? super java.lang.Integer" меняется.