Skip to content

Commit

Permalink
more multiplatform migrations breandan/kotlingrad#24
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Nov 7, 2021
1 parent af2606d commit d83f2ce
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ interface IGF<G: IGraph<G, E, V>, E: IEdge<G, E, V>, V: IVertex<G, E, V>> {
}.let { G(it) }

// Gafter's gadget! http://gafter.blogspot.com/2006/12/super-type-tokens.html
// TODO: Find a way to achieve this using Kotlin reflection?
val gev: Array<Class<*>> get() = memoize {
(generateSequence(javaClass) { it.superclass as Class<IGF<G, E, V>> }
.first { it.genericSuperclass is ParameterizedType }
Expand Down

0 comments on commit d83f2ce

Please sign in to comment.