C# printer: nine unit-test samples that Roslyn rejects
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 61/100
Línea de trabajo
Read the listed TestJavaToCSharpStructure and TestJavaToCSharpBcl samples, then run the C# printer unit tests with CSharpCheck via tools/csharp-check -serve. Fix each remaining printer bug identified by the Roslyn errors and remove its compile = false marker; the issue is done when all samples compile. The inherited-family test fault is already fixed.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The C# printer's unit tests now have Roslyn judge every sample (CommonJavaToCSharp.translate, CSharpCheck on tools/csharp-check -serve). On the first run, 9 of 131 samples do not compile. Each test sets compile = false with a pointer here until its printer bug is fixed; this issue closes when none is left.
TestJavaToCSharpStructure.conditionalVars:var node = c ? new IndexedExists<A, B>() : new UnindexedExists<A, string>()— CS0173, C# finds no common type for a conditional of two sibling classes; Java's is the common supertype (declare it, or cast one branch).TestJavaToCSharpStructure.innerClasses:Upcoming : IJavaIterator<long>withlong? Next()— CS0738, the boxedLong next()must override aslong, as it does for a top-level class.TestJavaToCSharpStructure.localClasses: a local class that captures (Adder) is referenced but not printed anywhere — CS0246.TestJavaToCSharpStructure.longTypeArguments: a cast through a wildcard printed asobject— CS0030 (the wildcard family).TestJavaToCSharpStructure.suppliers:sealed class Defaults<R> where R : Defaults<R>— CS0701, a class that is a type parameter's bound cannot besealed.TestJavaToCSharpStructure.tryWithResources:System.gc()unmapped (GC.Collect()).TestJavaToCSharpStructure.wildcardInterfaces: the wildcard interfaceIImpacterand the companionstatic class IImpacterofIImpacter<G>clash — CS0102.TestJavaToCSharpBcl.navigation: three errors in one sample:T[] ToArray<T>(T[] a) => items.ToArray()(CS0029,E[]toT[]),!Contains(v) && items.Add(v)whereAddisvoidon aHashSet-backedICollection(CS0019), andc.All(...)on the non-genericICollection(CS1061).TestJavaToCSharpFacts.inheritedFamilyAndStructswas the test's own fault (a package-private method implementing an interface method is not Java either) and is fixed.
- Lenguaje dominante
- Java
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 1 h 13 min
- PR fusionados (30 d)
- 6
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CodeLaser/maddi
-
Javadoc warnings are the only noise on an otherwise clean CI runPosiblemente ocupada @jayeshamundkar06-bit la tomó hace 4 días. Abiertobuild/ci good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
CodeLaser/maddi#4 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
front-end:csharp
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 14/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
Todos los issues de CodeLaser/maddi
Issues similares
-
Keyboard crashes Chrome tabsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Julow/Unexpected-Keyboard#1490 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Vakore/ZappierGames#275 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
unitycatalog/unitycatalog#2148 ·
Los mantenedores suelen responder en 2 días
-
enhancement priority: low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Riptide-Labs/riptide#1060 ·
Los mantenedores suelen responder en 1 día
-
bug key bindings source editor
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día