In order to replicate the bug that halts IntelliJ:
- Install IntelliJ IDEA 2020
- Use kotlin plugin 1.3.71 or better
- Open BugHere.kt
- Remove the two typecasts (
as MetricInfoTable<*>
) - shown below - Trigger autocomplete of some sort
val table: MetricInfoTable<*> = when (type) {
MetricSource.CUSTOM -> CustomMetricInfoTable.CUSTOM_METRIC_INFO
MetricSource.DEFAULT -> DefaultMetricInfoTable.DEFAULT_METRIC_INFO
}