エラー Couldn't inline method call 'userProfileChangeRequest' into


FirebaseのAuthenticationでユーザープロフィール更新時に謎のバグ

Kotlinでfirebaseのプロフィール更新時に

Couldn't inline method call 'userProfileChangeRequest' into

っ出てビルドが通らない。
理由は不明だけど、下記でビルドが通ったので、もしものときに誰かの役に立てばと思って書き残します。

バグの出たコード

val profileUpdates = userProfileChangeRequest {
    displayName = "ユーザー名"
}

バグが回避できたコード


val profileUpdates = UserProfileChangeRequest.Builder()
        .setDisplayName("ユーザー名")
        .build()