What exactly does that mean? Is it illegal to, say, pay for a house in eggs (I give you 1 million eggs for this house)? Any kind of barter is illegal?
There is plenty of regulation for bartering in most countries. Like for a house, you local IRS will have something to say if you exchange your house and dodge taxes like that.
Taxes is the key issue in our economies.
Don't know the situation in China, but that already holds for some countries.
E.g in my country, any transaction over a certain amount of money (not very big), has to be done through a bank to be legal.
You also can't make payments on a loan with bitcoin, store bitcoin in the bank or expect to accumulate interest (by the bank, disregarding proof-of-stake-type currencies), etc.