Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>org.scalastuff</groupId>
<artifactId>scalabeans</artifactId>
<packaging>jar</packaging>
<version>0.3</version>
<version>0.4-SNAPSHOT</version>
<name>ScalaBeans</name>
<description>Reflection toolkit for Scala</description>
<url>http://scalastuff.org</url>
Expand Down Expand Up @@ -194,4 +194,4 @@
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class ScalaTypeCompiler(scalaType: ScalaType, classDecl: ClassDecl) {
def getTypeDecl(t: Type): TypeDecl = t match {
case tp: TypeProjection =>
tp.parent match {
case ptp: TypeProjection => getTypeDecl(ptp)
case st: SingletonType =>
st.path match {
case mp: MemberPath =>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.scalastuff.scalabeans.sig

import org.junit.Test

/**
* For some reason these test helper classes have to be at the top level scope. The test did not fail if the classes
* were in the scope of the test class or test function.
*/
class OuterTestClass {
class InnerTestClass
}
class Container(val inner: OuterTestClass#InnerTestClass)

class ScalaTypeCompilerTest {
@Test
def testInnerClassExtractable() {
ScalaTypeCompiler.classInfoOf[Container]
}
}