Nested generics with class name definitions on ClassDiagram #5804
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
Hi, I have discovered that there is a non-functioning demo on the local demo page in the development environment:
https://github.com/kairi003/mermaid/blob/115cb071b09056c34c9b750579432d4232a10500/demos/classchart.html#L148-L160
L159 probably defines a class named
PeopleList<List<Person>>
, but it does not work.Nesting of Generic Types by
~
works for members, but not for class name definitions.Not nested case:
class People List~List~
Nested case:
class People List~List~Person~~
Translated with DeepL.com (free version)
Steps to reproduce
./run dev
and access tohttp://localhost:9000/classchart.html
Screenshots
Code Sample
No response
Setup
Suggested Solutions
classDiagram.jison
needs to be modified to allow nested genericsclassDb.ts > splitClassNameAndType()
needs to be modified to properly parse nested generics (usingparseGenericTypes()
?)Additional Context
I’m a beginner with both this project and Jison. I apologize, but I’m hoping someone can help resolve this.
The text was updated successfully, but these errors were encountered: