If my journal is:
commodity ""
account a ; type:A
account b
account c
2025-09-17 start
a 1
b 2
c
And then run hledger check -s, it yields this error:
hledger.exe: Error: C:\Users\ganuo/test.j:8:
| 2025-09-17 start
8 | a 1
| ^
| b 2
| c -3
Strict account checking is enabled, and
account "a" has not been declared.
Consider adding an account directive. Examples:
account a
But if the account isn't assigned any type, then it passes. Why is that?